//
//  NSObject+THToast.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"

NS_ASSUME_NONNULL_BEGIN

@interface NSObject (THToast)

///提示消息toast
- (void)showToast:(NSString*)toast;

- (void)showToast:(NSString*)toast inView:(UIView *)view;

/// toast
/// @param tips 提示toast
/// @param delay 延迟delays后消失
/// @param completeBlock completeBlock 完成回调
- (void)showTipsView:(NSString *)tips
   afterDelay:(NSTimeInterval)delay
       completeBlock:(MBProgressHUDCompletionBlock)completeBlock;



/// 显示loading
- (void)showLoading;

- (void)showLoadingInView:(UIView*)inView;

- (void)hidenHUDInView:(UIView*)inview;

/// 显示loading
/// @param tips loading 下提示语
- (void)showLoading:(NSString *)tips;


/// 隐藏loading
- (void)hiddenLoading;

- (BOOL)hiddenAllHud;

@end

NS_ASSUME_NONNULL_END
